#pragma once 
#include<iostream>
#include<unistd.h>
namespace taskMoudle
{
    class task
    {
    private:
        int x, y, ret;
    public:
        task(int a, int b) :x(a), y(b)
        {}
        task(){}
        void excute()
        {
            sleep(1); // 用一秒来模拟任务的执行时长
            ret = x + y;
        }
        int& X()
        {
            return x;
        }
        int& Y() {return y;}
        int Ret() {return ret;}
        void operator==(task t)
        {
            x = t.X();
            y = t.Y();
            excute();
        }
        ~task()
        {

        }
    };
    
    
}